@space: 24px;
@border_light: #d9d9d9;
@border_dark: #868686;
@import '~@/pages/global.less';

.content {
  .down {
    padding-top: 7px;
    padding-left: 12px;
    color: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    font-family: 'PingFang SC';
    cursor: pointer;
  }
  .file_box {
    display: flex;
    align-items: center;
    width: 450px;
    padding: 13px 0;
    // height: 160px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed #434343;
    border-radius: 5px;
  }
  .file_info {
    display: flex;
    flex-direction: column;
    align-content: space-around;
    align-items: flex-start;
    padding-left: 20px;
    .after_text {
      position: relative;
      color: #7a7d7f;
      font-weight: 400;
      font-size: 12px;
      font-family: 'PingFang SC';
    }
    .file_footer {
      color: var(--font-primary);
      font-weight: 400;
      font-size: 12px;
      font-family: 'PingFang SC';
      cursor: pointer;
    }
  }
  .label {
    padding-bottom: 13px;
    color: var(--font);
    font-weight: 400;
    font-size: 14px;
    font-family: 'PingFang SC';
    .after {
      position: relative;
      padding-left: 16px;
      color: var(--text-color-tertiary);
      font-weight: 400;
      font-size: 12px;
      font-family: 'PingFang SC';
      &::before {
        position: absolute;
        top: 0;
        left: 8px;
        color: #fd4f43;
        content: '*';
      }
    }
    .after_text {
      position: relative;
      padding-left: 16px;
      color: var(--text-color-tertiary);
      font-weight: 400;
      font-size: 12px;
      font-family: 'PingFang SC';
    }
  }
  .more {
    margin-left: 5px;
    color: var(--font-primary);
    font-style: italic;
    cursor: pointer;
  }
  .improt_file {
    width: 82px !important;
    height: 40px !important;
    color: var(--font-primary) !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    border: 1px solid var(--bd) !important;
  }
  :global {
    .ant-upload-select {
      display: block !important;
    }
  }
}
.disabled {
  color: var(--font-a30) !important;
  cursor: no-drop !important;
}

.modalDefault() {
  :global {
    .ant-modal-header {
      padding-top: 18px;
      padding-bottom: 0;
      border-bottom: 0;
    }
    .ant-modal-body {
      padding: 16px 24px;
    }
    .ant-modal-footer {
      padding: @space;
      padding-top: 0;
      border-top: 0 !important;
    }
    .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
      margin-left: 16px;
    }
  }
}
.modal {
  .modalDefault();
  .modal_title {
    display: flex;
    align-items: center;
    height: 30px;
    padding-left: 37px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    background-image: url('~@/assets/img/plan_icon.png');
    background-repeat: no-repeat;
    background-size: 30px 30px;
  }

  .modal_body {
    display: flex;
    width: 100%;
    height: 328px;
    overflow: hidden;
    border: 1px solid @border_light;
    border-radius: 4px;
  }
}
html[data-type-color='dark'] {
  .modal {
    :global {
      ::-webkit-scrollbar {
        width: 6px;
        height: 10px;
        background: transparent;
      }
      ::-webkit-scrollbar-thumb {
        background: #acb1c1;
        border-radius: 5px;
        opacity: 0.5;
      }
      ::-webkit-scrollbar-track {
        border-radius: 5px;
      }
      .ant-modal-header,
      .ant-modal-content {
        background-color: #3a3a3a;
      }
      .ant-input-affix-wrapper {
        border-color: #757575;
      }
      .ant-checkbox-inner,
      .ant-tree-checkbox-inner,
      .ant-checkbox-indeterminate .ant-checkbox-inner {
        background: #2b2d30;
        border-color: #fff;
      }
      .ant-modal-header {
        background: #222629 !important;
      }
      .ant-modal-body {
        background: #222629 !important;
      }
      .ant-modal-footer {
        background: #222629 !important;
      }
    }
    .modalDefault();
    .modal_title {
      background-image: url('~@/assets/img/plan_icon.png');
    }
    .modal_body {
      border-color: @border_dark;
      .treebox {
        border-color: @border_dark;
      }
      .chooseList {
        color: #fff;
      }
      .close {
        color: #d8d8d8;
      }
      .clear {
        color: #fff;
      }
    }
    .modelOverWrite();
  }
}
